package com.eightgroups.tces.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 指标
 * </p>
 *
 * @author zzc2016.cn
 * @since 2017-11-13
 */
public class Indicator extends Model<Indicator> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 指标名字
     */
	private String name;
    /**
     * 上级ID
     */
	private Long pid;
    /**
     * 类型 0：目录 1：指标
     */
	private Integer type;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 指标权重
     */
	private Integer weight;
	/**
	 * 选项a
	 */
	@TableField("option_a")
	private String optionA;
	/**
	 * 选项b
	 */
	@TableField("option_b")
	private String optionB;
	/**
	 * 选项c
	 */
	@TableField("option_c")
	private String optionC;
	/**
	 * 选项d
	 */
	@TableField("option_d")
	private String optionD;
	/**
	 * 选项a权重
	 */
	@TableField("weight_a")
	private Integer weightA;
	/**
	 * 选项b权重
	 */
	@TableField("weight_b")
	private Integer weightB;
	/**
	 * 选项c权重
	 */
	@TableField("weight_c")
	private Integer weightC;
	/**
	 * 选项d权重
	 */
	@TableField("weight_d")
	private Integer weightD;
    /**
     * 描述
     */
	private String description;
	/**
	 * 状态 0、禁用 1、正常
	 */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField(value = "gmt_create" ,fill = FieldFill.INSERT)
	private Date gmtCreate;
	/**
	 * 修改时间
	 */
	@TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	public String getOptionA() {
		return optionA;
	}

	public void setOptionA(String optionA) {
		this.optionA = optionA;
	}

	public String getOptionB() {
		return optionB;
	}

	public void setOptionB(String optionB) {
		this.optionB = optionB;
	}

	public String getOptionC() {
		return optionC;
	}

	public void setOptionC(String optionC) {
		this.optionC = optionC;
	}

	public String getOptionD() {
		return optionD;
	}

	public void setOptionD(String optionD) {
		this.optionD = optionD;
	}

	public Integer getWeightA() {
		return weightA;
	}

	public void setWeightA(Integer weightA) {
		this.weightA = weightA;
	}

	public Integer getWeightB() {
		return weightB;
	}

	public void setWeightB(Integer weightB) {
		this.weightB = weightB;
	}

	public Integer getWeightC() {
		return weightC;
	}

	public void setWeightC(Integer weightC) {
		this.weightC = weightC;
	}

	public Integer getWeightD() {
		return weightD;
	}

	public void setWeightD(Integer weightD) {
		this.weightD = weightD;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Indicator{" +
				"id=" + id +
				", name=" + name +
				", pid=" + pid +
				", type=" + type +
				", sort=" + sort +
				", weight=" + weight +
				", optionA=" + optionA +
				", optionB=" + optionB +
				", optionC=" + optionC +
				", optionD=" + optionD +
				", weightA=" + weightA +
				", weightB=" + weightB +
				", weightC=" + weightC +
				", weightD=" + weightD +
				", description=" + description +
				", status=" + status +
				", gmtCreate=" + gmtCreate +
				", gmtModified=" + gmtModified +
				"}";
	}
}
